#include <input_manager.h>
#include <stdio.h>
#include <string.h>


int main(int argc, char **argv)
{
	InputEvent tevent ;
	int ret ;
    InPutInit();
	IntPutDevInit();

	while(1)
	{
		ret = GetInPutEvent(&tevent);
		if(ret)
		{
			printf("GetInPutEvent Error\n");
			return -1;
		}
		else
		{
			if(tevent.iType == INPUT_TYPE_TOUCH)
			{
				printf("Type = %d\n",tevent.iType);
				printf("X = %d\n",tevent.ix);
				printf("Y = %d\n",tevent.iy);
				printf("Press = %d\n",tevent.iPress);
			}
			else if(tevent.iType == INPUT_TYPE_NET)
			{
				printf("Type = %d\n",tevent.iType);
				printf("Str = %s\n",tevent.str);
			}
		}
	}
	return 0;	
}